package c.e.b.h.e.k;

import c.e.a.b.b.j.d;
import c.e.a.b.g.f;
import c.e.a.b.g.g;
import c.e.b.h.e.q.c.c;
import c.e.b.h.e.q.c.c.a;
import c.e.b.h.e.s.i.b;
import java.util.List;
import java.util.concurrent.Executor;

/* compiled from: CrashlyticsController */
public class a0 implements f<b, Void> {
    public final /* synthetic */ List a;
    public final /* synthetic */ boolean b;
    public final /* synthetic */ Executor c;
    public final /* synthetic */ b0 d;

    public a0(b0 b0Var, List list, boolean z, Executor executor) {
        this.d = b0Var;
        this.a = list;
        this.b = z;
        this.c = executor;
    }

    public g a(Object obj) throws Exception {
        b bVar = (b) obj;
        c.e.b.h.e.b bVar2 = c.e.b.h.e.b.a;
        if (bVar == null) {
            bVar2.f("Received null app settings, cannot send reports during app startup.");
            return d.b(null);
        }
        for (c cVar : this.a) {
            if (cVar.e() == a.JAVA) {
                t.c(bVar.e, cVar.f());
            }
        }
        t.b(t.this);
        c.e.b.h.e.q.b a = ((c0) t.this.j).a(bVar);
        List list = this.a;
        boolean z = this.b;
        float f = this.d.b.b;
        synchronized (a) {
            if (a.g != null) {
                bVar2.b("Report upload has already been started.");
            } else {
                Thread thread = new Thread(new c.e.b.h.e.q.b.d(list, z, f), "Crashlytics Report Uploader");
                a.g = thread;
                thread.start();
            }
        }
        t.this.s.a(this.c, m0.a(bVar));
        t.this.w.b(null);
        return d.b(null);
    }
}
